package kr.co.boardProject.controller;

import java.io.IOException;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boardProject.conn.DbcpBean;

public class DBCon extends HttpServlet{
	
	private DbcpBean dbcp;
	public void service(HttpServletRequest request,HttpServletResponse response)
			throws ServletException, IOException {
		//request.setCharacterEncoding("euc-kr");
		String method=request.getParameter("method");
		
	}
	public void init() throws ServletException {
		ServletContext sc=getServletContext();
		dbcp=(DbcpBean)sc.getAttribute("dbcp");
		if(dbcp==null){
			dbcp=new DbcpBean();
			sc.setAttribute("dbcp",dbcp);
		}
	}
	
}
